package com.ruoyi.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.ActivityRelationsMapper;
import com.ruoyi.platform.domain.ActivityRelations;
import com.ruoyi.platform.service.IActivityRelationsService;

/**
 * 活动关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
@Service
public class ActivityRelationsServiceImpl implements IActivityRelationsService 
{
    @Autowired
    private ActivityRelationsMapper activityRelationsMapper;

    /**
     * 查询活动关联
     * 
     * @param relationId 活动关联主键
     * @return 活动关联
     */
    @Override
    public ActivityRelations selectActivityRelationsByRelationId(String relationId)
    {
        return activityRelationsMapper.selectActivityRelationsByRelationId(relationId);
    }

    /**
     * 查询活动关联列表
     * 
     * @param activityRelations 活动关联
     * @return 活动关联
     */
    @Override
    public List<ActivityRelations> selectActivityRelationsList(ActivityRelations activityRelations)
    {
        return activityRelationsMapper.selectActivityRelationsList(activityRelations);
    }

    /**
     * 新增活动关联
     * 
     * @param activityRelations 活动关联
     * @return 结果
     */
    @Override
    public int insertActivityRelations(ActivityRelations activityRelations)
    {
        return activityRelationsMapper.insertActivityRelations(activityRelations);
    }

    /**
     * 修改活动关联
     * 
     * @param activityRelations 活动关联
     * @return 结果
     */
    @Override
    public int updateActivityRelations(ActivityRelations activityRelations)
    {
        return activityRelationsMapper.updateActivityRelations(activityRelations);
    }

    /**
     * 批量删除活动关联
     * 
     * @param relationIds 需要删除的活动关联主键
     * @return 结果
     */
    @Override
    public int deleteActivityRelationsByRelationIds(String[] relationIds)
    {
        return activityRelationsMapper.deleteActivityRelationsByRelationIds(relationIds);
    }

    /**
     * 删除活动关联信息
     * 
     * @param relationId 活动关联主键
     * @return 结果
     */
    @Override
    public int deleteActivityRelationsByRelationId(String relationId)
    {
        return activityRelationsMapper.deleteActivityRelationsByRelationId(relationId);
    }
}
